<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<!--/*@thymesVar id="student" type="net.lzzy.springboot_chapter04_thymeleaf.entity.Student"*/-->
<footer th:fragment="frag1" th:text="${student.name}">我是片段1</footer>

<div th:fragment="frag2">我是片段2</div>
</body>
</html>
         